﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DotNet.Utilities;
using JinfuyuanProject.Entity;
using JinfuyuanProject.Entity.Filter;
using JinfuyuanProject.Entity.ViewModels;

namespace JinfuyuanProject.Service.Interface
{
    public interface IProductService
    {
        IQueryable<Product> GetList();
        Product GetModel(int Id);

        bool Delete(Product product);

        int Insert(Product product);

        bool Update(Product product);
        Hashtable Query(ProductFilter filter);
        Hashtable SearchName(string keywords);
        Hashtable NewProductProcurement(ProductVM productVm,int inboundId);
        Hashtable CreateInbound(ProductVM productVM,int inboundId);
        Hashtable CreateOutbound(List<InboundVM> productData);
        ResMessage ProductApi(int id, int uid);
    }
}
